﻿using System;
using RssNewsFeeder.Model.Business;
using System.Collections.ObjectModel;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RssNewsFeeder.ViewModel
{
    public class NewsCategoryViewModel:ViewModelBase
    {
        private NewsCategoryCollection _newsCategoryCollection;

        /// <summary>
        /// Constructor
        /// </summary>
        public NewsCategoryViewModel()
        {
            _newsCategoryCollection = new NewsCategoryCollection();
        }

        public ObservableCollection<object> NewsCategoryCollection
        {
            get
            {
                return new ObservableCollection<object>(_newsCategoryCollection.NewsCompanies);
            }
        }
        
        protected override void OnDispose()
        {
            base.OnDispose();            
        }
    }
}
